package com.example.aigc_education.domain.request;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;
@Data
public class AddFlashCardsRequest {
    private String executeId;

    @NotNull(message = "主题id不能为空")
    private Long themeId;

    @NotEmpty(message = "抽认卡集名称不能为空")
    private String paperName;

    @NotEmpty(message = "难度不能为空")
    // 简单/中等/困难
    private String difficulty;

    private List<AddFlashCardsRequest.FlashCard> flashCards;

    @Data
    public static class FlashCard implements Serializable {

        @NotEmpty(message = "答案不能为空")
        private String card_answer;


        @NotEmpty(message = "问题不能为空")
        private String card_question;

        @NotEmpty(message = "解释不能为空")
        private String interpretation;
    }
}
